Skip to main content

SetRowHeight

Sets the row height value.

Syntax

expression.SetRowHeight(nHeight);

expression - A variable that represents a ApiRange class.

Parameters

NameRequired/OptionalData typeDefaultDescription
nHeightRequiredptThe row height in the current range measured in points.

Returns

This method doesn't return any data.

Example

This example sets the row height value.

var oWorksheet = Api.GetActiveSheet();
oWorksheet.GetRange("A1").SetRowHeight(32);